Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Checking for up-to-date pkg versions and update if necessary. #4028

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

0danteh
Copy link

@0danteh 0danteh commented Dec 8, 2023

The update function is a custom script that checks for updates for the installed packages from the packages and aur directories. It compares the local and remote versions of each package and prompts the user to install the updates if available.

To use the update function, simply run it in a terminal without any arguments. It will print a message indicating the progress of the check and the list of packages that have updates available. For example:

$ update
Checking for updates...
The following packages have updates available:
lib1
lib2
lib3
Do you want to install them? [Y/n]

The user can then enter Y or y to confirm the installation, N or n to cancel the installation, or any other input to abort the operation. The function will then call the do_sync function for each package that needs to be updated.

I hope you will like this, I wish everybody a great day!

The proposed code aims at the creation of the `update` function that will check if the versions of the needed libraries are up-to-date and, if they're not, update them on user's input.
@0danteh 0danteh requested a review from noptrix as a code owner December 8, 2023 11:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant